@extends('home.layout.base')
<link rel="stylesheet" href="{{URL::asset('./css/hrmy/public.css')}}">
<link rel="stylesheet" href="{{URL::asset('./css/hrmy/feedback.css')}}">
@section('content')
<div class="mainHrContent" id="hrfeedback_details">
    <div class="storelistTitle">
        <span class="storelistTitle_left">
            <span>
                <img src="{{URL::asset('./img/icon/home.png')}}">
            </span>
            <span><a href="{{route('home.index.index') }}">首页</a> >
                <a href="{{route('home.hrmy.hrIndex') }}">用户中心</a>
                > 投诉与建议
            </span>
        </span>
        <span class="storelistTitle_right">
            <span>找不到合适的供应商？发个需求试试？</span>
            <button @click=" window.location.href = '{{ route('home.demand.demandAdd') }}'">免费发布需求</button>
        </span>
    </div>
    <div class="hrContent">
        @include('home.hrmy.menu')
        <div class="basicInfo" id="hrfeedback_detailss">
            <div class="basicInfo_title">
                <span></span>
                投诉建议
            </div>
            <div class="hrfeedback_detailsMain">
                <div class="detailsBackD">
                    <img :src="item" style="width:100%;margin-bottom:10px;" v-for="item in imgList" />
                    <span>您发送的投诉建议内容</span>
                    <div>
                        @{{details.content}}
                    </div>
                </div>
                <div class="detailsBackD">
                    <span>平台回复的内容</span>
                    <div>
                        @{{details.reply_content}}

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
@section('compontentScipts')
<script>
    $(() => {
        let hrfeedback_details = new Vue({
            el: '#hrfeedback_detailss',
            data: () => {
                return {
                    id: getQueryString("id"),
                    details: {},
                    imgList: [],
                }
            },
            created() {
                let data = {
                    feed_id: this.id
                };
                apiAjax("{{ route('home.user.userFeedbacksDetailsApi')}}", 'get', data, (res) => {
                    if (res.code == 0) {
                        this.details = res.data;
                        this.imgList = res.data.images.split(",")
                    } else {
                        this.$message({
                            message: res.msg,
                            type: 'warning'
                        });
                    }
                }, (erro) => {

                });
            },
            mounted() {},
            methods: {

            }
        })
    })
</script>
@endsection